import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("基本Dial示例")

    Dial {
        id: basicDial
        anchors.centerIn: parent
        width: 200
        height: 200

        from: 0
        to: 100
        value: 50

        onValueChanged: {
            console.log("当前值:", value.toFixed(1))
        }
    }

    Text {
        anchors.top: basicDial.bottom
        anchors.horizontalCenter: basicDial.horizontalCenter
        text: "当前值: " + basicDial.value.toFixed(1)
        font.pixelSize: 16
    }
}
